package cn.iocoder.yudao.module.diy.service.poster;

import cn.iocoder.yudao.module.diy.compoent.CallbackListener;
import cn.iocoder.yudao.module.diy.compoent.Event;
import cn.iocoder.yudao.module.diy.compoent.EventResult;
import lombok.Data;

import java.util.Map;

/**
 * 获取海报数据
 */
public abstract class GetPosterDataEventDefiner extends CallbackListener<GetPosterDataEventDefiner.GetPosterDataEvent> {

    @Data
    public static class GetPosterDataEvent extends Event {
        private String type;

        private Map<String, Object> param;

        private String channel;
    }

    @Data
    public static class GetPosterDataResult extends EventResult {
        private Map<String, Object> data;
    }

    public abstract GetPosterDataResult handleCallback(GetPosterDataEvent event);
}
